/*
 * Copyright (c) 2018-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

namespace TencentCloud.Ccc.V20200210.Models
{
    using Newtonsoft.Json;
    using System.Collections.Generic;
    using TencentCloud.Common;

    public class ModifyStaffRequest : AbstractModel
    {
        
        /// <summary>
        /// Application id (required) can be found at https://console.cloud.tencent.com/ccc.
        /// </summary>
        [JsonProperty("SdkAppId")]
        public ulong? SdkAppId{ get; set; }

        /// <summary>
        /// Agent account.
        /// </summary>
        [JsonProperty("Email")]
        public string Email{ get; set; }

        /// <summary>
        /// Agent name.
        /// </summary>
        [JsonProperty("Name")]
        public string Name{ get; set; }

        /// <summary>
        /// Agent phone number (preceded by 0086, example: 008618011111111).
        /// </summary>
        [JsonProperty("Phone")]
        public string Phone{ get; set; }

        /// <summary>
        /// Agent nickname.
        /// </summary>
        [JsonProperty("Nick")]
        public string Nick{ get; set; }

        /// <summary>
        /// Agent id.
        /// </summary>
        [JsonProperty("StaffNo")]
        public string StaffNo{ get; set; }

        /// <summary>
        /// Bind skill group id list.
        /// </summary>
        [JsonProperty("SkillGroupIds")]
        public long?[] SkillGroupIds{ get; set; }

        /// <summary>
        /// Whether the cell phone outbound call switch is enabled or not.
        /// </summary>
        [JsonProperty("UseMobileCallOut")]
        public bool? UseMobileCallOut{ get; set; }

        /// <summary>
        /// Cell phone answering pattern: 0 - off | 1 - only when offline | 2 - always.
        /// </summary>
        [JsonProperty("UseMobileAccept")]
        public long? UseMobileAccept{ get; set; }

        /// <summary>
        /// Agent extension number (starting with 1 to 8, 4 - 6 digits).
        /// </summary>
        [JsonProperty("ExtensionNumber")]
        public string ExtensionNumber{ get; set; }

        /// <summary>
        /// Call forwarding configuration.
        /// </summary>
        [JsonProperty("ForwardingConfig")]
        public ForwardingConfig ForwardingConfig{ get; set; }


        /// <summary>
        /// For internal usage only. DO NOT USE IT.
        /// </summary>
        public override void ToMap(Dictionary<string, string> map, string prefix)
        {
            this.SetParamSimple(map, prefix + "SdkAppId", this.SdkAppId);
            this.SetParamSimple(map, prefix + "Email", this.Email);
            this.SetParamSimple(map, prefix + "Name", this.Name);
            this.SetParamSimple(map, prefix + "Phone", this.Phone);
            this.SetParamSimple(map, prefix + "Nick", this.Nick);
            this.SetParamSimple(map, prefix + "StaffNo", this.StaffNo);
            this.SetParamArraySimple(map, prefix + "SkillGroupIds.", this.SkillGroupIds);
            this.SetParamSimple(map, prefix + "UseMobileCallOut", this.UseMobileCallOut);
            this.SetParamSimple(map, prefix + "UseMobileAccept", this.UseMobileAccept);
            this.SetParamSimple(map, prefix + "ExtensionNumber", this.ExtensionNumber);
            this.SetParamObj(map, prefix + "ForwardingConfig.", this.ForwardingConfig);
        }
    }
}

